package org.gourpg.model.role;

/**
 * 角色配置实体
 */
public class RoleDetails {
    /**
     * 角色ID，角色的主键
     */
    private Integer roleId;

    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 角色类型（岗位角色、临时角色）字典 ROLE_TYPE
     */
    private String roleType;

    /**
     * 角色说明
     */
    private String roleRemark;

    public RoleDetails() {
    }

    public Integer getRoleId() {
        return this.roleId;
    }

    public String getRoleName() {
        return this.roleName;
    }

    public String getRoleType() {
        return this.roleType;
    }

    public String getRoleRemark() {
        return this.roleRemark;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    public void setRoleRemark(String roleRemark) {
        this.roleRemark = roleRemark;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof RoleDetails)) return false;
        final RoleDetails other = (RoleDetails) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$roleId = this.getRoleId();
        final Object other$roleId = other.getRoleId();
        if (this$roleId == null ? other$roleId != null : !this$roleId.equals(other$roleId)) return false;
        final Object this$roleName = this.getRoleName();
        final Object other$roleName = other.getRoleName();
        if (this$roleName == null ? other$roleName != null : !this$roleName.equals(other$roleName)) return false;
        final Object this$roleType = this.getRoleType();
        final Object other$roleType = other.getRoleType();
        if (this$roleType == null ? other$roleType != null : !this$roleType.equals(other$roleType)) return false;
        final Object this$roleRemark = this.getRoleRemark();
        final Object other$roleRemark = other.getRoleRemark();
        if (this$roleRemark == null ? other$roleRemark != null : !this$roleRemark.equals(other$roleRemark))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof RoleDetails;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $roleId = this.getRoleId();
        result = result * PRIME + ($roleId == null ? 43 : $roleId.hashCode());
        final Object $roleName = this.getRoleName();
        result = result * PRIME + ($roleName == null ? 43 : $roleName.hashCode());
        final Object $roleType = this.getRoleType();
        result = result * PRIME + ($roleType == null ? 43 : $roleType.hashCode());
        final Object $roleRemark = this.getRoleRemark();
        result = result * PRIME + ($roleRemark == null ? 43 : $roleRemark.hashCode());
        return result;
    }

    public String toString() {
        return "RoleDetails(roleId=" + this.getRoleId() + ", roleName=" + this.getRoleName() + ", roleType=" + this.getRoleType() + ", roleRemark=" + this.getRoleRemark() + ")";
    }
}
